package com.aaa.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.aaa.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lei
 * @create 2023-03-20 16:41
 */
public interface MenuDao extends BaseMapper<Menu> {
    List<Menu> selectByuserid(Long userId);

    List<Menu> getLeftMenu(String phone);

    List<Integer> findByRoleId(Long roleId);

    void deleteIds(Long roleId);

    void batchMenuIds(@Param("roleId") Long roleId,@Param("menuIds") Long[] menuIds);

    Boolean batchDelRoleMenu(Long menuId);
}
